/*===========================================================================
  Copyright (C) 2014 by the Okapi Framework contributors
-----------------------------------------------------------------------------
  This library is free software; you can redistribute it and/or modify it 
  under the terms of the GNU Lesser General Public License as published by 
  the Free Software Foundation; either version 2.1 of the License, or (at 
  your option) any later version.

  This library is distributed in the hope that it will be useful, but 
  WITHOUT ANY WARRANTY; without even the implied warranty of 
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser 
  General Public License for more details.

  You should have received a copy of the GNU Lesser General Public License 
  along with this library; if not, write to the Free Software Foundation, 
  Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

  See also the full LGPL text here: http://www.gnu.org/copyleft/lesser.html
===========================================================================*/

package net.sf.okapi.v2.common.om.impl;

import net.sf.okapi.v2.common.om.IMarker;
import net.sf.okapi.v2.common.om.TagType;

/**
 * Implements a closing {@link IMarker}. 
 * This is just a delegate of {@link StartMarker} where all the data is placed.
 */
class EndMarker implements IMarker {

	final private StartMarker start;
	
	public EndMarker (StartMarker start) {
		this.start = start;
	}

	@Override
	public TagType getTagType () {
		return TagType.CLOSING;
	}

	@Override
	public String getId () {
		return start.getId();
	}

	@Override
	public void setId (String id) {
		start.setId(id);
	}

	@Override
	public String getType () {
		return start.getType();
	}

	@Override
	public void setType (String type) {
		start.setType(type);
	}

	@Override
	public boolean isCode () {
		return false;
	}

	@Override
	public boolean getTranslate () {
		return start.getTranslate();
	}

	@Override
	public void setTranslate (boolean translate) {
		start.setTranslate(translate);
	}

	@Override
	public String getValue () {
		return start.getValue();
	}

	@Override
	public void setValue (String value) {
		start.setValue(value);
	}

	@Override
	public String getRef () {
		return start.getRef();
	}

	@Override
	public void setRef (String ref) {
		start.setRef(ref);
	}

}
